<?php
/**
 * PHP Framework UI ImmediateRenderer class
 * This class represents an object which serves for immediately processing and
 * rendering a framework control directly from the PHP code.
 *
 * @author Andrew <andrew@vitche.com>
 * @author Frozen Rain <frozenrain@mail.ru>
 **/
class ImmediateRenderer {

    public function __construct($control) {
        $control->bind();
        $control->process();
        echo $control->render();
    }
}
?>